package com.sea.physical.service;

import java.util.Map;

public interface OAuth2ClientService {

    String getAuthorizationCode(String corpId, String state) throws Exception;

    String getAccessToken(String appKey, String appSecret, String code) throws Exception;

    String getWorkFlow(String body) throws Exception;

    String doPost(String url, Map<String, String> headers, String body) throws Exception;

    String uploadBase64File(String accessToken, String userId, String base64Data, String fileName, long fileSize, long lastModified) throws Exception;

    //回退流程
    String doForceDrawBack(String accessToken,String userId,String requestId) throws Exception;
    //回退流程
    String deleteRequest(String accessToken,String userId,String requestId) throws Exception;

    String getToken() throws Exception;
}
